package com.hp.dao.impl;

import org.springframework.orm.hibernate5.HibernateTemplate;

import com.hp.dao.FootDao;
import com.hp.entity.Foot;

public class FootDaoImpl implements FootDao {
	private HibernateTemplate hibernateTemplate;
	
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	@Override
	public void insertFoot(Foot foot) {
		hibernateTemplate.save(foot);
	}

	@Override
	public void delectFoot(Foot foot) {
		hibernateTemplate.delete(foot);
	}

}
